﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%> 

<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系列展示</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
</head>
<body style="background:url(img/top.jpg) repeat-x;height:100%" >
	
		<div class="tools">
			<ul class="toolbar">
				<li><a href="<%=request.getContextPath()%>/goodsController/saveSeriesUI.action" style="margin-top:4px;">
						<span style="margin-left:3px;color:white">添加系列<---</span></a>
				</li>
			</ul>
		</div>
	<div class="rightinfo">
		<ul class="classlist">
			<c:forEach items="${seriesList}" var="item" varStatus="status">
				<li><a action="goods_findGoodsByPid?pid=${item.goods.goods_id}">
						<img src="<%=path%>/../webimages/${item.pictureUrl}" style="position:relative;width:150px;height:180px"/>
					</a>
					<div class="lright">
						<h1><center>${item.goods.goods_name}</center></h1>
						<h3>系列描述:</h3>
						<textarea disabled style="height:65px;color:black">${item.goods.goods_shortDescription}</textarea><br>
							<a href="<%=request.getContextPath()%>/goodsController/allGoodsUI.action?goods_pid=${item.goods.goods_id}" class="enter">查看详情</a>
							<a href="<%=request.getContextPath()%>/goodsController/deleteSeries.action?goods_id=${item.goods.goods_id}" class="enter">删除系列</a>
							<a href="<%=request.getContextPath()%>/goodsController/editSeriesUI.action?goods_id=${item.goods.goods_id}" class="enter">修改系列</a>
							<c:choose>  
							   <c:when test="${item.goods.goods_isDel == '0'}">
							   		<a href="<%=request.getContextPath()%>/goodsController/updateSeriesStateById.action?goods_id=${item.goods.goods_id}&goods_isDel=1"
									class="enter" onclick="checkState()" id="state">暂停出售</a>
							   </c:when>  
							     
							   <c:otherwise> 
							   		<a href="<%=request.getContextPath()%>/goodsController/updateSeriesStateById.action?goods_id=${item.goods_id}&goods_isDel=0"
									class="enter" onclick="checkState()" id="state">恢复出售</a>
							   </c:otherwise>  
							</c:choose>  
  
					</div>
				</li>
			</c:forEach>
		</ul>
	</div>
</body>
</html>
